package com.explorx.sns.puma.im.core.userlink;

import com.explorx.sns.puma.im.core.userlink.dto.*;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.stream.Collectors;

@Service
public class UserLinkServiceImpl implements UserLinkService{

    private static final String STATIC_IP="192.168.1.2";
    @Override
    public List<UserLinkInfo> queryUserLink(GetUserLinkReq req) {
        return req.getUids().stream()
                .map(ele->UserLinkInfo.builder()
                        .userId(ele).ip(STATIC_IP).status(1).build()).collect(Collectors.toList());

    }

    @Override
    public GetUserLinkStatusResp queryUserLinkStatus(GetUserLinkStatusReq req) {
        return null;
    }


}
